core: Clean up object storage API
authorColin Walters <walters@verbum.org>
Thu, 3 May 2012 23:57:05 +0000 (19:57 -0400)
committerColin Walters <walters@verbum.org>
Thu, 3 May 2012 23:59:13 +0000 (19:59 -0400)
commit67f61976f4271a014213693b2da5cc738d5cad6a
treee8e0464287ae90092e18a438180940295e3aec55
parent99cb8a80fac934e09028984ea6a472e35d16e9a4
core: Clean up object storage API

Rather than passing xattr/file_info for all objects, change the API to
assume we're passing the defined object stream for each type.  Namely,
for OSTREE_OBJECT_TYPE_FILE, we're now giving the "archive file" data.

This significantly cleans up the code for committing to archive mode
repositories, at the cost of having to (at present) create an
intermediate temporary file when committing to raw repositories.
src/libostree/ostree-chain-input-stream.c
src/libostree/ostree-core.c
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/ostree/ostree-pull.c
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-unpack.c